<%@ page pageEncoding="UTF-8"%>
<%@ page import="itsm.isperp.control.form.process.WorkflowProcesser"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags"%>

<isperp:individuationView>

	<jsp:body>
<div class="box  no-border">

	<table class="form-table">
		

		<tr>
			<td class="td1">申报人：</td>
			<td class="td2"><label style="font-weight: 700;font-size: 14px">${cusUser.fullname}</label>（工号：${cusUser.name}
				<c:if test="${empty cusUser.name}">${cusUser.code}</c:if>） <c:choose>
					<c:when test="${cusUser.sex eq '男' }">
						<img src='img/icons/packs/fugue/24x24/user-business.png' alt="男">
					</c:when>
					<c:when test="${cusUser.sex eq '女' }">
						<img src='img/icons/packs/fugue/24x24/user-female.png' alt="女">
					</c:when>
					<c:otherwise>
					</c:otherwise>
				</c:choose></td>
			<td class="td1">电话：</td>
			<td class="td2">${cusUser.mobile}<c:if
					test="${not empty cusUser.tel}">/${cusUser.tel}</c:if>
			</td>
		</tr>

		<tr>

			<td class="td1">所在部门：</td>
			<td class="td2">${cusUser.department_treenode_name_path}</td>
			<td class="td1">邮件：</td>
			<td class="td2">${cusUser.email}</td>

		</tr>


		<tr id="frm_sh3">
			<td class="td1">关联项目：</td>
			<td class="td2" colspan="3"><isperp:relationLabel id="projectId"
					idValue="${model.projectId }" displayColumn="name"
					moduleUrl="project/project"></isperp:relationLabel></td>
		</tr>

		<tr id="frm_sh3">
			<td class="td1">事件描述：</td>
			<td class="td2" colspan="3"><label><pre>${model.description}</pre>
			</label></td>
		</tr>

		<tr>
			<td class="td1">附件：</td>
			<td class="td2" colspan="3"><isperp:uploader
					sourceId="${model.id }" id="incidentFiles" readonly="true"></isperp:uploader>
			</td>
		</tr>



	</table>
</div>

<form:form id="individuationForm" commandName="model"
	cssClass="validate" action="individuation/individuation/save">
	<form:hidden path="id" />
	<form:hidden path="categoryId" />

	<jsp:include page="../../incident/incident/incidentProperty.jsp"></jsp:include>

</form:form>
<br></br>

	</jsp:body>
</isperp:individuationView>

<script type="text/javascript">
	$(function() {
		$("#closeWinBtn").hide();
	});
	function beforeSubmit(a,b,c)
	{
	  var nextOutLineId=c;
	  var curNodeId='${nodeId}';
	  var key=$("#id").val();
	  var result=false;
	  $.ajax({
	    url:"individuation/processRelation/getRunInfo",
	    async: false,
	    data:{nextOutLineId:nextOutLineId,curNodeId:curNodeId,key:key},
	    success:function(data)
	    {
	      if(!data.success)
	      {
	        isperp.alert(data.msg);
	        result=false;
	      }else
	      {
	        result=true;
	      }
	    }
	  });
	  return result;
	}
</script>
<isperp:buttonList>

	<isperp:processButtons processKey="${processKey }" viewOnly="false"
		autoEntryNext="false" formId="individuationForm" beforeSubmit="function c(a,b,c){return  beforeSubmit(a,b,c);} "
		processId="${model.processId }" businessKey="${model.id }"></isperp:processButtons>

</isperp:buttonList>


